package pkg;

/**
 * @author huangliusong
 * @since 2018/10/16
 * {@link Set}
 */
public class BstSet<E extends Comparable<E>> implements Set<E> {
    private BST<E> bst;
    public BstSet(){
        bst=new BST<E>();
    }

    public void add(E e) {
        bst.add(e);
    }

    public void remove(E e) {
        bst.remove(e);
    }

    public boolean contains(E e) {
        return bst.contains(e);
    }

    public int getSize() {
        return bst.size();
    }

    public boolean isEmpty() {
        return bst.isEmpty();
    }
}
